package com.citcc.web.controller.util.sms;

/**
 * Created by yangyanfei on 2017/8/6.
 */
public class JsonResult {

    private int code;

    private Object data;

    private String message;
    
    private int num;
    
    private String customData;
    
    public String getCustomData() {
		return customData;
	}

	public void setCustomData(String customData) {
		this.customData = customData;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public JsonResult() {}

    public JsonResult(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public JsonResult(int code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }
    

    public JsonResult(int code, Object data, String message, int num) {
		this.code = code;
		this.data = data;
		this.message = message;
		this.num = num;
	}
    public JsonResult(int code, Object data, String message, int num,String customData) {
		this.code = code;
		this.data = data;
		this.message = message;
		this.num = num;
		this.customData=customData;
	}

   

	public JsonResult(int code, Object data, String message, String customData) {
		this.code = code;
		this.data = data;
		this.message = message;
		this.customData = customData;
	}

	public JsonResult(Object data) {
        this(200, data, null);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
